package com.ganeshkrishnan.globald.web.controller;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.ganeshkrishnan.globald.dao.CivResourceDao;
import com.ganeshkrishnan.globald.dao.MilResourceDao;
import com.ganeshkrishnan.globald.dao.PersonDao;

@Controller
@RequestMapping(value = "/stats")
public class StatsController {
	Long _person = 13l;
	@Autowired
	private CivResourceDao civicDao;
	@Autowired
	private MilResourceDao milDao;

	public MilResourceDao getMilDao() {
		return milDao;
	}

	public void setMilDao(MilResourceDao milDao) {
		this.milDao = milDao;
	}

	public CivResourceDao getCivicDao() {
		return civicDao;
	}

	public void setCivicDao(CivResourceDao civicDao) {
		this.civicDao = civicDao;
	}

	@Autowired
	private PersonDao personDao;

	public PersonDao getPersonDao() {
		return personDao;
	}

	public void setPersonDao(PersonDao personDao) {
		this.personDao = personDao;
	}

	public StatsController() {
	}

	// initializing method
	@RequestMapping(method = RequestMethod.GET)
	public String getCreateForm(Model model, HttpSession session) {
		return "stats";
	}
}
